package com.pos.service.impl;

import com.pos.dao.UsersDAO;
import com.pos.pojo.Users;
import com.pos.service.UserService;

public class UserServiceImpl implements UserService {
    UsersDAO usersDAO;

    public UsersDAO getUsersDAO() {
        return usersDAO;
    }

    public void setUsersDAO(UsersDAO usersDAO) {
        this.usersDAO = usersDAO;
    }

    @Override
    public String getPassword(String userid) {
        return usersDAO.getPassword(userid);
    }

    @Override
    public Users getUserById(String userId) {
        return usersDAO.getUserById(userId);
    }
}
